# $Id: PKGBUILD 88297 2013-04-16 06:56:11Z schiv $
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: Wes Brewer <brewerw@gmail.com>
# Contributor: VuDu <vudu.curse@gmail.com>

pkgname=nfoview
pkgver=1.12.1
_basever=1.12
pkgrel=1
pkgdesc="Simple NFO file viewer in GTK+ 3"
arch=('any')
url="http://home.gna.org/nfoview/"
license=('GPL3')
depends=('gtk3' 'python-gobject' 'desktop-file-utils' 'hicolor-icon-theme')
makedepends=('intltool')
optdepends=('terminus-font: recommended font')
install=$pkgname.install
source=("http://download.gna.org/$pkgname/$_basever/$pkgname-$pkgver.tar.xz"
        'x-nfo.desktop')
md5sums=('f67b8d9e2c677109a30a68779ff660d7'
         '29d0ad75aeecfaf21965c01173d23e48')

package() {
  cd "$srcdir/$pkgname-$pkgver"

  python3 ./setup.py install --root "$pkgdir" --optimize 1

  install -Dm644 "$srcdir/x-nfo.desktop" \
    "$pkgdir/usr/share/mimelnk/text/x-nfo.desktop"
}

# vim:set ts=2 sw=2 et:
